/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 整个项目通用状态管理
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/11/20
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191120, 添加注释)
 */
import request from '../libs/request'

const common = {
    state: {
        formStyle: {
            labelCol: {span: 6},
            wrapperCol: {span: 17}
        },
        formStyleUnit: {
            labelCol: {span: 8},
            wrapperCol: {span: 15}
        },
        formItemLayoutTask: {
            wrapperCol: {span: 20, offset: 6}
        },
        formItemLayoutWithOutLabel: {
            wrapperCol: {span: 20, offset: 6}
        },
        formItemLayoutWithOutLabelT: {
            wrapperCol: {span: 20, offset: 8}
        },
        maxLength:0,
        timeoutTime:4000,
        isLoginOut:false,
    },
    mutations: {
        setLoginOut(state, obj){
            state.isLoginOut = obj;
        },
    },
    actions: {
        getLoginOut ({commit}, arg) {
            commit('setLoginOut', arg)
        },
    }
}

export default common
